﻿#include "qdemomainwindow.h"
#include "ui_qdemomainwindow.h"
#include "qdemobuttonclickeddlg.h"

QDemoMainWindow::QDemoMainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::QDemoMainWindow)
{
    ui->setupUi(this);

    connect(ui->mTestPushButton,&QPushButton::clicked,this,&QDemoMainWindow::onTestButtonClicked);
}

QDemoMainWindow::~QDemoMainWindow()
{
    delete ui;
}

void QDemoMainWindow::onTestButtonClicked()
{
    QDemoButtonClickedDlg dlg(this);
    dlg.exec();
}
